package com.mode;

import java.util.Random;

public class ShapeFactory {
	
	private static int[][][] shapes={
			{{0,1,0,0},{0,1,0,0},{0,1,0,0},{0,1,0,0}},
			{{0,0,0,0},{0,1,1,0},{0,1,1,0},{0,0,0,0}},
			{{0,1,0,0},{0,1,0,0},{0,1,1,0},{0,0,0,0}},
			{{0,0,0,0},{1,1,0,0},{0,1,1,0},{0,0,0,0}},
			{{0,0,0,0},{0,1,0,0},{1,1,1,0},{0,0,0,0}}
	};
	public static final int NODEWIDTH=20;
    public static final int NODEHEIGHT=20;
	
	public static Shape createShape(){
		
		Shape shape=new Shape();
		shape.setShape(shapes[new Random().nextInt(shapes.length)]);
		
		return shape;
	}

}
